home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / lappend.z / lappend
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. llllaaaappppppppeeeennnndddd((((3333TTTTccccllll))))                                                    llllaaaappppppppeeeennnndddd((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      lappend - Append list elements onto a variable
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      llllaaaappppppppeeeennnndddd _v_a_r_N_a_m_e ?_v_a_l_u_e _v_a_l_u_e _v_a_l_u_e ...?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      This command treats the variable given by _v_a_r_N_a_m_e as a list and appends
  17.      each of the _v_a_l_u_e arguments to that list as a separate element, with
  18.      spaces between elements.  If _v_a_r_N_a_m_e doesn't exist, it is created as a
  19.      list with elements given by the _v_a_l_u_e arguments.  LLLLaaaappppppppeeeennnndddd is similar to
  20.      aaaappppppppeeeennnndddd except that the _v_a_l_u_es are appended as list elements rather than
  21.      raw text.  This command provides a relatively efficient way to build up
  22.      large lists.  For example, ``llllaaaappppppppeeeennnndddd aaaa $$$$bbbb'' is much more efficient than
  23.      ``sssseeeetttt aaaa [[[[ccccoooonnnnccccaaaatttt $$$$aaaa [[[[lllliiiisssstttt $$$$bbbb]]]]]]]]'' when $$$$aaaa is long.
  24.  
  25.  
  26. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  27.      append, element, list, variable
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.